﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:local="clr-namespace:Send2Twitter.Addins.TwitterSender2" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
	x:Class="PinInputWindow"
	x:Name="Window"
	Title="PinInputWindow"
	Width="336" Height="72" ResizeMode="NoResize" WindowStyle="None" Background="#00000000">
	<Window.Resources>
		<local:Commands x:Key="CommandsDataSource" d:IsDataSource="True"/>
	</Window.Resources>
	<StackPanel DataContext="{Binding Source={StaticResource CommandsDataSource}}" Background="#00000000">
		<TextBox Height="24" Margin="8" TextWrapping="Wrap" Text="{Binding PIN, ElementName=Window}"/>
		<Grid Height="24" Background="#00000000">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="0.5*"/>
				<ColumnDefinition Width="80"/>
				<ColumnDefinition Width="80"/>
				<ColumnDefinition Width="0.5*"/>
			</Grid.ColumnDefinitions>
			<Button Content="确认" Grid.Column="1" Margin="0" IsDefault="True" Command="{Binding ApplyPin, Mode=OneWay}"/>
			<Button Content="取消" Grid.Column="2" Margin="0" Command="{Binding CancelEdit, Mode=OneWay}" IsCancel="True"/>
		</Grid>
	</StackPanel>
</Window>